<extend name="./Application/Admin/View/Layout/application.html"/>


<block name="content">
    <div class="row">
        <div class="col-md-11">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title">文章回收列表</h3>
                </div>
                <div class="panel-body">
                    <form action="" method="post" id="form">
                        <table class="table table-hover">
                            <thead>
                            <tr>
                                <th>
                                    <input type="checkbox" class="check_all">
                                </th>
                                <th>编号</th>
                                <th>标题</th>
                                <th>缩略图</th>
                                <th>排序</th>
                                <th>发布日期</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                            <tbody>

                            <volist name="articles" id="article">
                                <tr>
                                    <th>
                                        <input type="checkbox" name="ids[]" value="" class="checked_id">
                                    </th>
                                    <th scope="row">{{$article.id}}</th>
                                    <td class="title">{{$article.title}}</td>
                                    <td class="image"><img src="{{$article.thumb}}" alt="" width="48px;" height="35px;"></td>
                                    <td>
                                        <input type="text" class="sort_order" name="sort_order"
                                               value="{{$article.sort_order}}">
                                    </td>
                                    <td>{{$article.time|date="Y-m-d", ###}}</td>
                                    <td>

                                        <a href="{{:U('retrash',array('id'=>$article['id']))}}">
                                            <span class="glyphicon glyphicon-share-alt" aria-hidden="true"></span>
                                        </a>

                                        <a href="{{:U('confirm_delete',array('id'=>$article['id']))}}">
                                            <span class="glyphicon glyphicon-trash"></span>
                                        </a>
                                    </td>
                                </tr>
                            </volist>
                            </tbody>
                        </table>
                    </form>
                </div>
            </div>
        </div>

        <div class="col-md-1">
            <div class="list-group">
                <a href="javascript: void 0;" id="delete_all" class="list-group-item list-group-item-warning">
                    删除
                </a>
                <a href="javascript: void 0;" id="sort_order" class="list-group-item list-group-item-success">排序</a>
            </div>
        </div>
    </div>
</block>